|
|
|
|
|
|
|
Figure 32.3
ActiveX documents run inside a container
and therfore do not have title bars, borders,
and other features of independent windows. |
|
|
|
|
|
|
|
|
After you create the project, you can change the properties of the project and the UserDocument to descriptive names, as listed in Table 32.1. To access the properties of the project, choose Properties from the Project menu. You can access the properties of the UserDocument from the Properties window (by choosing View, Properties Window). After you set the properties, save the files of the project by clicking the Save button on the toolbar. You then have to specify names for each of the new files. |
|
|
|
|
| Table 32.1 Project and UserDocument Properties | | Property | Setting | | Project Type | ActiveX EXE | | Project Name | ActXCalc | | Project Description | ActiveX Document Loan Calculator | | UserDocument Name | CalcDoc |
|
 |
|
 |
|
|
Document Filenames |
|
|
|
 |
|
 |
|
|
You save the source code of ActiveX documents in a text file much the same way you save a form. The description of the UserDocument object and any controls is stored along with the code of the document in a file with the extension .DOB. This is similar to the FRM file of a form. If the interface has any graphical components, they are stored in a DOX file, similar to the FRX file for forms. When you compile your ActiveX document, you create either an EXE or DLL file, along with a VBD file. The VBD file is the one accessed by Internet Explorer. This VBD file is the "document" part of the file, similar to a DOC file from Microsoft Word. |
|
|
|
|
|
|
|
|
Creating the Interface of the Document |
|
|
|
|
|
|
|
|
You create the interface of your ActiveX document by drawing controls on the UserDocument object, just as you would draw them on the form of a standard program. You can use almost any |
|
|
|
|
|